@std.route('/student-home')
@login_required
def student_home():
    new_messages = Inputbox.query.filter(Inputbox.user_id == current_user.get_id()).filter(
        Inputbox.hasBeenRead == False).order_by(Inputbox.timestamp.desc()).all()  # 未读消息(hasBeenRead为False)
    if len(new_messages) > 0:
        flash('您有新的消息，请查看！')
    return render_template('student/student_home.html', greeting=greeting)